Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 15, 2026 01:43
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@aadishv
aadishv / claude-style.ts
Created January 25, 2026 20:18
the power of vibe coding!!
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { truncateToWidth } from "@mariozechner/pi-tui";
import * as path from "node:path";
export default function (pi: ExtensionAPI) {
pi.on("session_start", async (_event, ctx) => {
if (!ctx.hasUI) return;
ctx.ui.custom((tui, theme, _kb, done) => {
const isAssistantComponent = (c: any) =>
@jyoun1
jyoun1 / microgpt.py
Created February 15, 2026 01:39 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
# OpenClaw Implementation Prompts
Each prompt below is a self-contained brief you can hand to an AI coding assistant (or use as a project spec) to build that use case from scratch. Adapt the specific services to whatever you already use — the patterns are what matter.
---
## 1) Personal CRM Intelligence
```
Build me a personal CRM system that automatically tracks everyone I interact with, with smart filtering so it only adds real people — not newsletters, bots, or cold outreach.
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active February 15, 2026 01:35
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@behindthegarage
behindthegarage / OPENCLAW-OPERATING-SYSTEM.md
Created February 14, 2026 20:40
The OpenClaw Operating System: A Layered Guide — How to build a complete AI collaboration system, from foundation to advanced patterns. Built through partnership, not configuration.

The OpenClaw Operating System: A Layered Guide

How to build a complete AI collaboration system — from foundation to advanced patterns

The Core Insight

These aren't separate tools to adopt. They're an evolved system where each layer depends on the one below it.

Layer 1 is the unlock. Without the right AI behavior — autonomous execution, collaboration over reminders, prototype-first — nothing else works. You can't have effective workflow if your AI waits for permission on every file. You can't have group primers if your AI doesn't maintain docs automatically.

@zebpalmer
zebpalmer / Makefile.base
Created February 15, 2026 01:33
UV Python Project — Standard Makefile (self-updating)
## ===========================================================================
## UV Python Project — Standard Makefile
## Source: https://gist.github.com/zebpalmer/3026294e7d0f0db1e5e643ae94b9aa3d
## Update: `make self-update` to pull the latest version
##
## Project configuration variables (set above this banner or in project.mk):
## DOCS_TOOL - Documentation tool: mkdocs, sphinx, or empty (default: empty)
## SETUP_EXTRAS - Extra setup steps: uv-self-update, clean-venv (default: empty)
##
## Usage: